package com.platform.module.common.redis.lock;

public abstract class AbstractDistributedLock implements DistributedLock {
    public boolean lock(String key) {
        return lock(key, 30000L, 2147483647, 500L);
    }

    public boolean lock(String key, int retryTimes) {
        return lock(key, 30000L, retryTimes, 500L);
    }

    public boolean lock(String key, int retryTimes, long sleepMillis) {
        return lock(key, 30000L, retryTimes, sleepMillis);
    }

    public boolean lock(String key, long expire) {
        return lock(key, expire, 2147483647, 500L);
    }

    public boolean lock(String key, long expire, int retryTimes) {
        return lock(key, expire, retryTimes, 500L);
    }

    public boolean lock(String key, String uuid, long expire, int retryTimes) {
        return lock(key, uuid, expire, retryTimes, 500L);
    }


}
